package com.hefei.garden.job;

import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.stereotype.Component;

import java.util.concurrent.TimeUnit;

/**
 * 电商_支付宝原始数据_抓取
 *
 * @author devil
 */
@Component
public class EcommAlipayOriginalDataGrabJob {

    @XxlJob("ecommAlipayOriginalDataGrab")
    public void ecommAlipayOriginalDataGrab() throws Exception {
        int index = 0;
        while (true){
            index++;
            if(index == 10){
                break;
            }
            TimeUnit.SECONDS.sleep(3);
        }
    }
}

